package com.example.expandablelistview.fragmentdialog;

import com.example.expandablelistview.R;

import android.app.Activity;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.View;

public class AlertDialogFragment extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialogex);
	}

	public void mOnClick(View v) {
		Bundle args = new Bundle();
		args.putString("title", "알립니다");
		args.putString("message", "대화 상자를 열었습니다");
		
		DialogFragment newFragment = new MyAlertDialogFragment();
		newFragment.setArguments(args);
		newFragment.setCancelable(false);
		newFragment.show(getFragmentManager(), "Dialog");
	}
}
